package cn.donting.jme.edit.ui.toolbar.imp;

import cn.donting.jme.edit.ui.toolbar.ToolBar;
import com.jme3.asset.AssetManager;
import com.jme3.input.InputManager;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
import lombok.extern.slf4j.Slf4j;

/**
 * 一个空的ToolBar
 */
@Slf4j
public class NullToolBar extends ToolBar {
    private Node node = new Node();

    @Override
    public void init(AssetManager assetManager, InputManager inputManager) {

    }

    @Override
    public void selectSpatial(Spatial spatial) {
        log.debug("NullToolBar selectSpatial"+spatial);
    }

    @Override
    public Node getJmeControlNode() {
        return node;
    }

}
